﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;

namespace FourPartHarmony2
{
    public partial class App : Application
    {
        private void Application_Startup(object sender, StartupEventArgs e) {

            MidiManager.CreateTempFile();

            var w = new WindowMain();

            if (0 < e.Args.Length) {
                w.LoadFphFile(e.Args[0]);
            }
            w.Show();
        }

        private void Application_Exit(object sender, ExitEventArgs e) {
            MidiManager.DeleteTempFile();
        }
    }
}
